package com.society.sgsc.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * sgsc
 * com.society.sgsc.entities
 * 字典类
 *
 * @author 尘心
 * @date 2025/3/14 上午 09:48
 */
@TableName("t_sys_dict")
public class Dict implements Serializable {
    private Integer id;
    private String dictName;
    private String dictType;
    private String dictStatus; // 0:启用;1:禁用;
    private String dictMark;
    private String createBy;
    private LocalDateTime createTime;
    private String updateBy;
    private LocalDateTime updateTime;
    private Integer version;
    @TableField(exist = false)
    List<DictItem> dictItems;

    public Dict() {
    }

    public Dict(Integer id, String dictName, String dictType, String dictStatus, String dictMark, String createBy, LocalDateTime createTime, String updateBy, LocalDateTime updateTime, Integer version) {
        this.id = id;
        this.dictName = dictName;
        this.dictType = dictType;
        this.dictStatus = dictStatus;
        this.dictMark = dictMark;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.version = version;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDictName() {
        return dictName;
    }

    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public String getDictStatus() {
        return dictStatus;
    }

    public void setDictStatus(String dictStatus) {
        this.dictStatus = dictStatus;
    }

    public String getDictMark() {
        return dictMark;
    }

    public void setDictMark(String dictMark) {
        this.dictMark = dictMark;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public List<DictItem> getDictItems() {
        return dictItems;
    }

    public void setDictItems(List<DictItem> dictItems) {
        this.dictItems = dictItems;
    }

    @Override
    public String toString() {
        return "Dict{" +
                "id=" + id +
                ", dictName='" + dictName + '\'' +
                ", dictType='" + dictType + '\'' +
                ", dictStatus='" + dictStatus + '\'' +
                ", dictMark='" + dictMark + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", version=" + version +
                ", dictItems=" + dictItems +
                '}';
    }
}
